From 050a4731aaff21bf7c4485c53e6c5aa780492090 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Sat, 23 Dec 2006 09:40:18 +0000 Subject: [PATCH] [XEN] Add const attribute to elf_sanity_check() parameter on all arches. Signed-off-by: Alex Williamson --- xen/arch/ia64/xen/domain.c | 2 +- xen/arch/powerpc/domain_build.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/ia64/xen/domain.c b/xen/arch/ia64/xen/domain.c index 8406c12708..cd43c13d35 100644 --- a/xen/arch/ia64/xen/domain.c +++ b/xen/arch/ia64/xen/domain.c @@ -867,7 +867,7 @@ int shadow_mode_control(struct domain *d, xen_domctl_shadow_op_t *sc) #endif // see arch/x86/xxx/domain_build.c -int elf_sanity_check(Elf_Ehdr *ehdr) +int elf_sanity_check(const Elf_Ehdr *ehdr) { if (!(IS_ELF(*ehdr))) { diff --git a/xen/arch/powerpc/domain_build.c b/xen/arch/powerpc/domain_build.c index 12d9c5776e..0f283678f8 100644 --- a/xen/arch/powerpc/domain_build.c +++ b/xen/arch/powerpc/domain_build.c @@ -51,7 +51,7 @@ integer_param("dom0_max_vcpus", opt_dom0_max_vcpus); static unsigned int opt_dom0_shadow; boolean_param("dom0_shadow", opt_dom0_shadow); -int elf_sanity_check(Elf_Ehdr *ehdr) +int elf_sanity_check(const Elf_Ehdr *ehdr) { if (IS_ELF(*ehdr)) /* we are happy with either */ -- 2.30.2